<?php

class Header {

  protected static $headers;
  
  public static function set($header){
    static::$headers[] = $header;
  }
  public static function send(){
    foreach(static::$headers as $h){
      header($h);
    }
  }
}